import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-form',
  templateUrl: './form.component.html',
  styleUrls: ['./form.component.less']
})
export class FormComponent implements OnInit {
  public peopleInfo:any = {
    userName:'',
    sex:'1',
    cityList:['北京','上海','深圳'],
    city:['北京'],
    hobby:[
      {title:'吃饭',checked:false},
      {title:'睡觉',checked:false},
      {title:'打豆豆',checked:false},
    ],
    mark:''
  };

  constructor() { }

  ngOnInit() {
  }
  doSubmit(){
    console.log(this.peopleInfo)
  }
}
